package com.example.wastes.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.wastes.common.pojo.Shopping;
import com.example.wastes.common.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends IService<User> {
    List<User> findall();
    List<User> findUserName(String username);
    User SelectIntegral(@Param("id") Integer id);

    int upload1 (User user, MultipartFile file, HttpServletRequest request);

    User tologin1(String username);

    int saveUser(@Param("username") String username,@Param("password") String password);
    User findName(String username);

    List<User> findByidAll(Integer id);

    //用户提现
    int updateMoney(Integer id);
}
